package com.springboot.astra.bean;

import java.util.List;

public class Role {
    //roleId, roleName, createTime, updateTime, isDelete
    private Integer roleId;
    private String roleName;
    private String createTime;
    private String updateTime;
    private Boolean isDelete;
    private List<Permission> permissions;
    private List<Resource> resources;

    public Role() {
    }

    public Role(Integer roleId, String roleName, String createTime, String updateTime, Boolean isDelete, List<Permission> permissions, List<Resource> resources) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDelete = isDelete;
        this.permissions = permissions;
        this.resources = resources;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    public List<Resource> getResources() {
        return resources;
    }

    public void setResources(List<Resource> resources) {
        this.resources = resources;
    }
}
